<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .parent {
            display: flex;
        }
        div {
            border: 1px solid #e1e1e1;
            height: 40px;
        }
        .parent2 {
            display: inline-flex;
        }
    </style>
</head>
<body>
    <div class="parent">
        <div>我是内容1</div>
        <div>我是内容2</div>
        <div>我是内容3</div>
        <div>我是内容4</div>
        我是文本
        <!-- <span>
            我是行内元素

        </span> -->
    </div>
    <a href="#" class="parent2">
        <span>我是span1</span><span>我是span2</span><span>我是span3</span>
    </a>
    <a href="#">我是兄弟元素</a>
</body>
</html>